package com.dmai.capacity.platform.oauth.common.mapper;

import com.dmai.capacity.platform.common.model.Capability;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CapabilityDao  {

    int save(Capability capability);

    int update(Capability capability);

    int delete(String id);

    Capability findById(String id);

    Capability findByRequestUrl(@Param("requestUrl") String requestUrl);

    List<Capability> findAll(Map<String, Object> params);

}
